<%--
  Created by IntelliJ IDEA.
  User: WS
  Date: 2020/3/9
  Time: 14:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>域</title>
</head>
<body>
<%
    String iStr = application.getAttribute("count") == null ? "0" : application.getAttribute("count").toString();
    int i = Integer.parseInt(iStr);
    i++;
    application.setAttribute("count", i);
    request.setAttribute("requestA", "这里是request的值");
    request.getSession().setAttribute("sessionA", "这里是session的值");
%>
application:${count}
session:${sessionA}
request:${requestA}
</body>
</html>
